package cn.edu.neusoft.wuguangsheng.flowerimpression.service;


import java.util.List;
import java.util.Map;

import cn.edu.neusoft.wuguangsheng.flowerimpression.bean.AllCollectionKnowBean;
import cn.edu.neusoft.wuguangsheng.flowerimpression.bean.AllCommentKnowBean;
import cn.edu.neusoft.wuguangsheng.flowerimpression.bean.AllKnowBean;
import cn.edu.neusoft.wuguangsheng.flowerimpression.bean.AnswerAskBean;
import cn.edu.neusoft.wuguangsheng.flowerimpression.bean.AnswerBean;
import cn.edu.neusoft.wuguangsheng.flowerimpression.bean.AskBean;
import cn.edu.neusoft.wuguangsheng.flowerimpression.bean.BaiKeBean;
import cn.edu.neusoft.wuguangsheng.flowerimpression.bean.BaiKePhotoBean;
import cn.edu.neusoft.wuguangsheng.flowerimpression.bean.CartGoodsAllPriceBean;
import cn.edu.neusoft.wuguangsheng.flowerimpression.bean.CartGoodsBean;
import cn.edu.neusoft.wuguangsheng.flowerimpression.bean.FKnowBean;
import cn.edu.neusoft.wuguangsheng.flowerimpression.bean.GoodsBean;
import cn.edu.neusoft.wuguangsheng.flowerimpression.bean.GoodsCommentBean;
import cn.edu.neusoft.wuguangsheng.flowerimpression.bean.LoginBean;
import cn.edu.neusoft.wuguangsheng.flowerimpression.bean.LunBoTuBean;
import cn.edu.neusoft.wuguangsheng.flowerimpression.bean.MeiTuBean;
import cn.edu.neusoft.wuguangsheng.flowerimpression.bean.OrderBean;
import cn.edu.neusoft.wuguangsheng.flowerimpression.bean.RegistBean;
import cn.edu.neusoft.wuguangsheng.flowerimpression.bean.SearchBean;
import cn.edu.neusoft.wuguangsheng.flowerimpression.bean.SheQuInfoBean;
import cn.edu.neusoft.wuguangsheng.flowerimpression.bean.ShopInfoBean;
import cn.edu.neusoft.wuguangsheng.flowerimpression.bean.SuccessBean;
import cn.edu.neusoft.wuguangsheng.flowerimpression.bean.UserAddressBean;
import cn.edu.neusoft.wuguangsheng.flowerimpression.bean.UserFlagBean;
import cn.edu.neusoft.wuguangsheng.flowerimpression.bean.UserInfoBean;
import cn.edu.neusoft.wuguangsheng.flowerimpression.bean.UserOrderBean;
import okhttp3.MultipartBody;
import okhttp3.RequestBody;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Multipart;
import retrofit2.http.POST;
import retrofit2.http.Part;
import retrofit2.http.PartMap;
import retrofit2.http.Query;

public interface AllService {

    //http://localhost/flower_impression/public/api/userlogin?username=wuguangsheng&userpassword=12345
    //用户登录
    @GET("flower_impression/public/api/userlogin")
    public Call<LoginBean> login(@Query("phone") String username,
                                   @Query("password") String password);

    //http://localhost/flower_impression/public/api/userregist?password=123&phone=124581911&sex=1
    //注册
    @GET("flower_impression/public/api/userregist")
    public Call<RegistBean> regist(@Query("phone") String phone,
                                   @Query("password") String password,
                                   @Query("sex") String sex,
                                   @Query("nickname")String nickname,
                                   @Query("rand")String rand);
    //http://localhost/flower_impression/public/api/getRegistRand?phone=321
    //注册验证码获取
    @GET("flower_impression/public/api/getRegistRand")
    public Call<SuccessBean> getRegistRand(@Query("phone")String phone);

    //http://localhost/flower_impression/public/api/GetUserFlag?userid=1
    //获取用户当前状态
    @GET("flower_impression/public/api/GetUserFlag")
    public Call<UserFlagBean> getUserFlag(@Query("userid")String userid);

//获取用户信息
    //http://localhost/flower_impression/public/api/userInfo?userid=1
    @GET("flower_impression/public/api/userInfo")
    public Call<UserInfoBean> getUserInfo(@Query("userid")String userid);



    //http://localhost/flower_impression/public/api/getFknowList?title=养花知识
    //获取养花知识列表
    @GET("flower_impression/public/api/getFknowList")
    public Call<List<FKnowBean>> getFknowList(@Query("title") String title);


    //http://localhost/flower_impression/public/api/GetAllFknowList
    //获取养花知识列表(全部)
    @GET("flower_impression/public/api/GetAllFknowList")
    public Call<List<FKnowBean>> getAllFknowList();



    //http://localhost/flower_impression/public/api/getFknowInfo?fknow_id=10
    //获取养花知识详情
    @GET("flower_impression/public/api/getFknowInfo")
    public Call<FKnowBean> getFKnowInfo(@Query("fknow_id") String fknow_id);

//设置用户信息
    //http://localhost/flower_impression/public/api/setUserInfo?userid=10&sex=1&username=222&nickname=3333&signature=222
    @GET("flower_impression/public/api/setUserInfo")
    public Call<SuccessBean> setUserInfo(@Query("userid") String userid,
                                         @Query("username") String username,
                                         @Query("nickname") String nickname,
                                         @Query("sex") String sex,
                                         @Query("signature") String signature,
                                         @Query("birthday")String birthday);


    //修改密码
    //http://localhost/flower_impression/public/api/setUserPassword?userid=1&oldpassword=123&newpassword=123
    @GET("flower_impression/public/api/setUserPassword")
    public Call<SuccessBean> setUserPassword(@Query("userid") String userid,
                                             @Query("oldpassword") String oldpassword,
                                             @Query("newpassword") String newpassword);

//获取修改电话号码验证码
    //http://localhost/flower_impression/public/api/getSetPhoneRand?userid=1&password=123
    @GET("flower_impression/public/api/getSetPhoneRand")
    public Call<SuccessBean> getSetPhoneRand(@Query("userid") String userid,
                                             @Query("password") String password,
                                             @Query("phone") String phone);

    //修改电话号码
    //http://localhost/flower_impression/public/api/setUserPhone?userid=1&password=111&phone=18004091028&rand=123
    @GET("flower_impression/public/api/setUserPhone")
    public Call<SuccessBean> setUserPhone(@Query("userid") String userid,
                                          @Query("password") String password,
                                          @Query("phone") String phone,
                                          @Query("rand")String rand);

    //http://localhost/flower_impression/public/api/getSetEmailRand?userid=1&password=123
    @GET("flower_impression/public/api/getSetEmailRand")
    public Call<SuccessBean> getSetEmailRand(@Query("userid") String userid,
                                             @Query("password") String password,
                                             @Query("email") String email);

    @GET("flower_impression/public/api/setUserEmail")
    public Call<SuccessBean> setUserEmail(@Query("userid") String userid,
                                          @Query("password") String password,
                                          @Query("email") String email,
                                          @Query("rand")String rand);

    //搜藏养花知识
    //http://localhost/flower_impression/public/api/collecfknow?userid=1&fknowid=2
    @GET("flower_impression/public/api/collecFKnow")
    public Call<SuccessBean> collectionFKnow(@Query("userid") String userid,
                                             @Query("fknowid") String fknowid);

    //取消搜藏养花知识
    //http://localhost/flower_impression/public/api/removeCollectionFKnow
    @GET("flower_impression/public/api/removeCollectionFKnow")
    public Call<SuccessBean> removeCollectionFKnow(@Query("fknowid") String fknowid,
                                                   @Query("userid")String userid);

    //获取用户是否收藏了
    //http://localhost/flower_impression/public/api/getCollectionFKnowFlag?userid=1&fknowid=2
    @GET("flower_impression/public/api/getCollectionFKnowFlag")
    public Call<SuccessBean> getCollectionFKnowFlag(@Query("userid") String userid,
                                                    @Query("fknowid") String fknowid);


    //评论养花知识
    //http://localhost/flower_impression/public/api/commentfknow?userid=1&fknowid=3&fkccontent=5%8D%A1
    @GET("flower_impression/public/api/commentfknow")
    public Call<SuccessBean> commentFKnow(@Query("userid") String userid,
                                                    @Query("fknowid") String fknowid,
                                          @Query("fkccontent") String fkccontent);

    //http://localhost/flower_impression/public/api/getShopList
    //获取商店列表
    @GET("flower_impression/public/api/getShopList")
    public Call<List<ShopInfoBean>> getShopList();

    //http://localhost/flower_impression/public/api/getShopInfo?shopid=3
    //获取商店详情
    @GET("flower_impression/public/api/getShopInfo")
    public Call<ShopInfoBean> getShopInfo(@Query("shopid") String shopid);



    //http://localhost/flower_impression/public/api/getGoodsList?shopid=1
    //商品列表
    @GET("flower_impression/public/api/getGoodsList")
    public Call<List<GoodsBean>> getGoodsList(@Query("shopid") String shopid);


    //http://localhost/flower_impression/public/api/getGoodsInfo?goodid=23
    //商品详情
    @GET("flower_impression/public/api/getGoodsInfo")
    public Call<GoodsBean> getGoodsInfo(@Query("goodid") String goodid);



    //http://localhost/flower_impression/public/api/setUserAddress?userid=1
    //设置地址
    @GET("flower_impression/public/api/setUserAddress")
    public Call<SuccessBean> setUserAddress(@Query("userid") String userid,
                                            @Query("useraddressid") String useraddressid);



    //http://localhost/flower_impression/public/api/getUserAddressList?userid=1
    //获取用户duotiao地址
    @GET("flower_impression/public/api/getUserAddressList")
    public Call<List<UserAddressBean>> getUserAddressList(@Query("userid") String userid);

    //http://localhost/flower_impression/public/api/addUserAddress?userid=1&username=wuuwuw&userphone=123321&youbian=878767&address=%E5%8C%97%E4%BA%AC
    //添加用户地址
    @GET("flower_impression/public/api/addUserAddress")
    public Call<SuccessBean> addUserAddress(@Query("userid") String userid,
                                  @Query("username") String username,
                                  @Query("userphone") String userphone,
                                  @Query("youbian") String youbian,
                                  @Query("city")String city,
                                  @Query("address") String address);

    //http://localhost/flower_impression/public/api/UpdateUserAddress?useraddressid=1&username=wuuwuw&userphone=123321&youbian=878767&address=111
    //修改用户地址
    @GET("flower_impression/public/api/UpdateUserAddress")
    public Call<SuccessBean> updateUserAddress(@Query("useraddressid") String userid,
                                            @Query("username") String username,
                                            @Query("userphone") String userphone,
                                            @Query("youbian") String youbian,
                                            @Query("city") String city,
                                            @Query("address") String address);
    //localhost/flower_impression/public/api/DeleteUserAddressById?userid=1&useraddressid=1
    //删除地址
    @GET("flower_impression/public/api/DeleteUserAddressById")
    public Call<SuccessBean> deleteUserAddressById(@Query("userid") String userid,
                                               @Query("useraddressid") String useraddressid);

    //http://localhost/flower_impression/public/api/getUserAddressById?useraddressid=2
    //获取用户一条信息地址通过id
    @GET("flower_impression/public/api/getUserAddressById")
    public Call<UserAddressBean> getUserAddressById(@Query("useraddressid") String useraddressid);

    //http://localhost/flower_impression/public/api/buyOneGoods?
    // userid=1&orderaddress=%E4%BB%81%E6%80%80&ordercomment=111&goodid=23&goodnum=2&useraddressid=1
    //购买一种商品
    @GET("flower_impression/public/api/buyOneGoods")
    public Call<SuccessBean> buyOneGoods(@Query("userid") String userid,
                                         @Query("orderaddress") String orderaddress,
                                         @Query("ordercomment") String ordercomment,
                                         @Query("goodid") String goodid,
                                         @Query("goodnum") String goodnum,
                                         @Query("useraddressid") String useraddressid);

    //http://localhost/flower_impression/public/api/BuyCartGoods
    //购买购物车商品
//    $user_id = $_GET['userid'];
//    $shop_id = $_GET['shopid'];
//    $order_address = $_GET['orderaddress'];
//    $order_comment = $_GET['ordercomment'];
//    $useraddress_id = $_GET['useraddressid'];
    @GET("flower_impression/public/api/BuyCartGoods")
    public Call<SuccessBean> buyCartGoods(@Query("userid") String userid,
                                         @Query("shopid") String shopid,
                                         @Query("orderaddress") String orderaddress,
                                         @Query("ordercomment") String ordercomment,
                                         @Query("useraddressid") String useraddressid);

    //http://localhost/flower_impression/public/api/addGoodCart?userid=1&goodid=23&goodnum=2
    @GET("flower_impression/public/api/addGoodCart")
    public Call<SuccessBean> addGoodsCart(@Query("userid") String userid,

                                         @Query("goodid") String goodid,
                                         @Query("goodnum") String goodnum);

    //http://localhost/flower_impression/public/api/getCartShopList?userid=1
    //获取购物车商店
    @GET("flower_impression/public/api/getCartShopList")
    public Call<List<ShopInfoBean>> getCartShopList(@Query("userid") String userid);

    //http://localhost/flower_impression/public/api/getCartGoodList?userid=1&shopid=1
    //获取购物车商品
    @GET("flower_impression/public/api/getCartGoodList")
    public Call<List<CartGoodsBean>> getCartGoodList(@Query("userid") String userid,
                                                     @Query("shopid")String shopid);

    //http://localhost/flower_impression/public/api/collectionShop?userid=1&shopid=1
    //收藏店铺
    @GET("flower_impression/public/api/collectionShop")
    public Call<SuccessBean> collectionShop(@Query("userid") String userid,
                                                 @Query("shopid")String shopid);


    //http://localhost/flower_impression/public/api/RemoveCollectionShop?userid=1&shopid=1
    //取消收藏
    @GET("flower_impression/public/api/RemoveCollectionShop")
    public Call<SuccessBean> removeCollectionShop(@Query("userid") String userid,
                                            @Query("shopid")String shopid);

    //localhost/flower_impression/public/api/getCollectionShopFlag?userid=1&shopid=1
    //获取店铺收藏状态
    @GET("flower_impression/public/api/getCollectionShopFlag")
    public Call<SuccessBean> getCollectionShopFlag(@Query("userid") String userid,
                                            @Query("shopid")String shopid);

    //http://localhost/flower_impression/public/api/GetCollectionShopList?userid=1
    //获取收藏商店列表
    @GET("flower_impression/public/api/GetCollectionShopList")
    public Call<List<ShopInfoBean>> getCollectionShopList(@Query("userid") String userid);

    //http://localhost/flower_impression/public/api/getCollectionGoodsFlag?userid=1&goodid=1
    //是否收藏商品
    @GET("flower_impression/public/api/getCollectionGoodsFlag")
    public Call<SuccessBean> getCollectionGoodsFlag(@Query("userid") String userid,
                                                   @Query("goodid")String goodid);

    //http://localhost/flower_impression/public/api/CollectionGoods?userid=1&goodid=1
    //收藏商品
    @GET("flower_impression/public/api/CollectionGoods")
    public Call<SuccessBean> collectionGoods(@Query("userid") String userid,
                                            @Query("goodid")String goodid);

    //http://localhost/flower_impression/public/api/RemoveCollectionGoods?userid=1&goodid=1
    //取消收藏商品
    @GET("flower_impression/public/api/RemoveCollectionGoods")
    public Call<SuccessBean> removeCollectionGoods(@Query("userid") String userid,
                                                  @Query("goodid")String goodid);

    //http://localhost/flower_impression/public/api/GetCollectionGoodsList?userid=1
    //获取收藏商品列表
    @GET("flower_impression/public/api/GetCollectionGoodsList")
    public Call<List<GoodsBean>> getCollectionGoodsList(@Query("userid") String userid);

    //http://localhost/flower_impression/public/api/GetOrderList?userid=1&orderflag=0
    //获取订单列表
    @GET("flower_impression/public/api/GetOrderList")
    public Call<List<OrderBean>> getOrderList(@Query("userid") String userid,
                                              @Query("orderflag") String orderflag);



    //localhost/flower_impression/public/api/GetUserAllOrderList?userid=1
    //获取订单所有列表(后来开发购物车时)
    @GET("flower_impression/public/api/GetUserAllOrderList")
    public Call<List<UserOrderBean>> getUserAllOrderList(@Query("userid") String userid);


    //http://localhost/flower_impression/public/api/GetMyOrderCommentList?userid=1
    //我的订单评论
    @GET("flower_impression/public/api/GetMyOrderCommentList")
    public Call<List<GoodsCommentBean>> getMyOrderCommentList(@Query("userid") String userid);

    //http://localhost/flower_impression/public/api/DeleteMyOrderComment?orcid=1
    //删除订单评论
    @GET("flower_impression/public/api/DeleteMyOrderComment")
    public Call<SuccessBean> deleteMyOrderComment(@Query("orcid") String orcid);

    //http://localhost/flower_impression/public/api/UpdateMyOrderComment?userid=1
    //修改我的订单评论
    @GET("flower_impression/public/api/UpdateMyOrderComment")
    public Call<SuccessBean> updateMyOrderComment(@Query("orcid") String orcid,
                                                  @Query("content")String content);


    //http://localhost/flower_impression/public/api/GetUserOrderList?userid=1&orderflag=0
    //获取订单列表(后来开发购物车时)
    @GET("flower_impression/public/api/GetUserOrderList")
    public Call<List<UserOrderBean>> getUserOrderList(@Query("userid") String userid,
                                                      @Query("orderflag") String orderflag);

    //获取购物车商品总价
    //http://localhost/flower_impression/public/api/GetCartAllGoodPrice?userid=1&shopid=1
    @GET("flower_impression/public/api/GetCartAllGoodPrice")
    public Call<CartGoodsAllPriceBean> getCartAllGoodPrice(@Query("userid") String userid,
                                                    @Query("shopid") String shopid);

    //设置购物车购买状态
    //http://localhost/flower_impression/public/api/SetCartGoodsFlag?cartid=9&buyflag=0
    @GET("flower_impression/public/api/SetCartGoodsFlag")
    public Call<SuccessBean> setCartGoodsFlag(@Query("cartid")String cartid,
                                               @Query("buyflag")String buyflag);

    //http://localhost/flower_impression/public/api/CartAddGoodsNum?cartid=9
    //购物车商品增加
    @GET("flower_impression/public/api/CartAddGoodsNum")
    public Call<SuccessBean> cartAddGoodsNum(@Query("cartid")String cartid);

    //http://localhost/flower_impression/public/api/CartDescGoodsNum?cartid=9
    //购物车商品jieshao
    @GET("flower_impression/public/api/CartDescGoodsNum")
    public Call<SuccessBean> cartDescGoodsNum(@Query("cartid")String cartid);

    //http://localhost/flower_impression/public/api/DeleteCartGoods?cartid=9
    //购物车商品删除
    @GET("flower_impression/public/api/DeleteCartGoods")
    public Call<SuccessBean> deleteCartGoods(@Query("cartid")String cartid);


 //修改用户头像
    //SetUserHandPhotoIface
    //http://localhost/flower_impression/public/api/setUserHead
    @Multipart
    @POST("flower_impression/public/api/setUserHead")
    public Call<SuccessBean> setUserHandPhoto(@Part MultipartBody.Part part,
                                              @Query("userid") String userid);


    //上传社区（图片和文字）
    //http://localhost/flower_impression/public/api/AddSheQuInfo
    @Multipart
    @POST("flower_impression/public/api/AddSheQuInfo")
    public Call<SuccessBean> addSheQuInfo(@PartMap Map<String, RequestBody> bodyMap,
                                              @Query("userid") String userid,
                                          @Query("content")String content,
                                          @Query("address")String address);

    //上传社区（文字）
    //http://localhost/flower_impression/public/api/AddSheQuMessage

    @GET("flower_impression/public/api/AddSheQuMessage")
    public Call<SuccessBean> addSheQuMessage(@Query("userid") String userid,
                                             @Query("content")String content,
                                             @Query("address") String address);

    //http://localhost/flower_impression/public/api/getFknowComment?fknowid=2
    //获取养花知识评论list
    @GET("flower_impression/public/api/getFknowComment")
    public Call<List<AllKnowBean>> getFknowCommentList(@Query("fknowid")String fknowid);

    //http://localhost/flower_impression/public/api/GetAllKnowCommentList?userid=1
    //获取所有我的知识评论
    @GET("flower_impression/public/api/GetAllKnowCommentList")
    public Call<List<AllCommentKnowBean>> getAllKnowCommentList(@Query("userid")String userid);

    //http://localhost/flower_impression/public/api/DeleteKnowComment?fkcid=7
    //删除评论
    @GET("flower_impression/public/api/DeleteKnowComment")
    public Call<SuccessBean> deleteKnowComment(@Query("fkcid")String fkcid);

    //http://localhost/flower_impression/public/api/UpdateKnowComment?fkcid=8&fkccontent=33333331
    //修改评论
    @GET("flower_impression/public/api/UpdateKnowComment")
    public Call<SuccessBean> updateKnowComment(@Query("fkcid")String fkcidu,
                                              @Query("fkccontent")String fkccontent);

    //http://localhost/flower_impression/public/api/GetAllKnowCollectionList?userid=1
    //获取所有我的所有知识收藏
    @GET("flower_impression/public/api/GetAllKnowCollectionList")
    public Call<List<AllCollectionKnowBean>> getAllKnowCollectionList(@Query("userid")String userid);

    //http://localhost/flower_impression/public/api/GetGoodsComment?goodid=25
    //获取所有商品评论
    @GET("flower_impression/public/api/GetGoodsComment")
    public Call<List<GoodsCommentBean>> getGoodsCommentList(@Query("goodid")String goodid);

    //localhost/flower_impression/public/api/SetGoodsOrderComment?orderid=10&orccontent=我不好
    //评论商品订单
    @GET("flower_impression/public/api/SetGoodsOrderComment")
    public Call<SuccessBean> setGoodsOrderComment(@Query("orderid")String orderid,
                                               @Query("orccontent")String orccontent);

    //http:// http://localhost/flower_impression/public/api/GetAskList
    //获取所有提问列表
    @GET("flower_impression/public/api/GetAskList")
    public Call<List<AskBean>> getAskList();

    //http://localhost/flower_impression/public/api/GetAskInfoById?askid=1
    //获取提问详情
    @GET("flower_impression/public/api/GetAskInfoById")
    public Call<AskBean> getAskInfoById(@Query("askid")String askid);

    //http://localhost/flower_impression/public/api/GetAnswerList?askid=1
    //获取所有回答列表
    @GET("flower_impression/public/api/GetAnswerList")
    public Call<List<AnswerBean>> getAnswerList(@Query("askid")String askid);

    //localhost/flower_impression/public/api/AddAnswerInfo?askid=1&userid=1&content=2222
    //回答提问人内容
    @GET("flower_impression/public/api/AddAnswerInfo")
    public Call<SuccessBean> addAnswerInfo(@Query("askid")String askid,
                                           @Query("userid")String userid,
                                           @Query("content")String content);

    //localhost/flower_impression/public/api/AddAskInfo?userid=1&asktitle=123&askcontent=321
    //我要提问
    @GET("flower_impression/public/api/AddAskInfo")
    public Call<SuccessBean> addAskInfo(@Query("userid")String userid,
                                           @Query("asktitle")String asktitle,
                                           @Query("askcontent")String askcontent);

    //http://localhost/flower_impression/public/api/GetMyAskList?userid=1
    //获取用户提问列表
    @GET("flower_impression/public/api/GetMyAskList")
    public Call<List<AskBean>> getMyAskList(@Query("userid")String userid);

    //http://localhost/flower_impression/public/api/GetMyAnswerList?userid=1
    //获取用户回答列表
    @GET("flower_impression/public/api/GetMyAnswerList")
    public Call<List<AnswerAskBean>> getMyAnswerList(@Query("userid")String userid);


    //localhost/flower_impression/public/api/DeleteMyAnswer?answerid=10
    //删除我的回答
    @GET("flower_impression/public/api/DeleteMyAnswer")
    public Call<SuccessBean> deleteMyAnswer(@Query("answerid")String answerid);

    //http://localhost/flower_impression/public/api/DeleteMyAsk?askid=3
    //删除我的提问
    @GET("flower_impression/public/api/DeleteMyAsk")
    public Call<SuccessBean> deleteMyAsk(@Query("askid")String askid);

    //http://localhost/flower_impression/public/api/GetSheQuList
    //获取社区列表
    @GET("flower_impression/public/api/GetSheQuList")
    public Call<List<SheQuInfoBean>> getSheQuList();

    //http://localhost/flower_impression/public/api/GetMeiTuList
    //获取美图列表
    @GET("flower_impression/public/api/GetMeiTuList")
    public Call<List<MeiTuBean>> getMeiTuList();


    //http://localhost/flower_impression/public/api/GetBaiKeList?title=草木花卉
    //获取百科列表
    @GET("flower_impression/public/api/GetBaiKeList")
    public Call<List<BaiKeBean>> getBaiKeList(@Query("title") String title);


    //http://localhost/flower_impression/public/api/GetBaiKeInfo?encid=6
    //获取百科详情
    @GET("flower_impression/public/api/GetBaiKeInfo")
    public Call<BaiKeBean> getBaiKeInfo(@Query("encid") String encid);

    //http://localhost/flower_impression/public/api/GetBaiKeTuKuList?encid=5
    //获取百科图库
    @GET("flower_impression/public/api/GetBaiKeTuKuList")
    public Call<List<BaiKePhotoBean>> getBaiKeTuKuList(@Query("encid") String encid);

    //http://localhost/flower_impression/public/api/AddFeedBack?userid=1&content=123
    //添加反馈
    @GET("flower_impression/public/api/AddFeedBack")
    public Call<SuccessBean> addFeedBack(@Query("userid") String userid,
                                         @Query("content")String content);

    //http://localhost/flower_impression/public/api/BuyCartGoodsList?userid=1&shopid=1
    //购物车购买获取已选中状态商品
    @GET("flower_impression/public/api/BuyCartGoodsList")
    public Call<List<CartGoodsBean>> buyCartGoodsList(@Query("userid") String userid,
                                         @Query("shopid")String shopid);



    //http://172.20.10.5/flower_impression/public/api/GetUserOrderInfo?orderid=28
    //获取订单详情
    @GET("flower_impression/public/api/GetUserOrderInfo")
    public Call<UserOrderBean> getUserOrderInfo(@Query("orderid") String orderid);

    //获取轮播图
    //GetLunBoTu
    @GET("flower_impression/public/api/GetLunBoTu")
    public Call<List<LunBoTuBean>> getLunBoTu();


    //搜索
    //http://localhost/flower_impression/public/api/SearchShopGoods?search=%E8%8A%B1
    @GET("flower_impression/public/api/SearchShopGoods")
    public Call<List<SearchBean>> searchShopGoods(@Query("search")String search);

    //获取找回密码邮箱验证码
    //localhost/flower_impression/public/api/GetFindEmailRand?email=317325191@qq.com
    @GET("flower_impression/public/api/GetFindEmailRand")
    public Call<SuccessBean> getFindEmailRand(@Query("email")String email);

    //判断获取找回密码邮箱验证码
    //http://localhost/flower_impression/public/api/JudegFindEmailRand?email=317325191@qq.com&rand=547306
    @GET("flower_impression/public/api/JudegFindEmailRand")
    public Call<SuccessBean> judegFindEmailRand(@Query("email")String email,
                                                @Query("rand")String rand);

    //判断获取找回密码手机验证码
    //http://localhost/flower_impression/public/api/JudegFindPhoneRand?email=317325191@qq.com&rand=547306
    @GET("flower_impression/public/api/JudegFindPhoneRand")
    public Call<SuccessBean> judegFindPhoneRand(@Query("phone")String phone,
                                                @Query("rand")String rand);

    //找回密码修改新密码
    //http://localhost/flower_impression/public/api/SetFindPassword
    @GET("flower_impression/public/api/SetFindPassword")
    public Call<SuccessBean> setFindPassword(@Query("setflag")String email,
                                                @Query("phem")String rand,
                                            @Query("password") String password);

    //获取找回密码短信验证码
    //localhost/flower_impression/public/api/GetFindPhoneRand?phone=
    @GET("flower_impression/public/api/GetFindPhoneRand")
    public Call<SuccessBean> getFindPhoneRand(@Query("phone")String phone);


    //删除社区
    //http://localhost/flower_impression/public/api/DeleteSheQu?sqid=54
    @GET("flower_impression/public/api/DeleteSheQu")
    public Call<SuccessBean> deleteSheQu(@Query("sqid")String sqid);
}
